<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<fieldset><legend>回访记录</legend>
<table class="list">
	<tbody>
		<tr>
			<td class="right">日期：</td>
			<td class="left"><c:out value="${revisit.revisitTime}" /></td>
		</tr>
		<tr>
			<td class="right">空腹血糖：</td>
			<td class="left"><c:out value="${revisit.emptyBloodSugar}" />mmol/L</td>
			<td class="right">餐后2H血糖：</td>
			<td class="left"><c:out value="${revisit.twoHourBloodSugar}" />mmol/L</td>
			<td class="right">运动量：</td>
			<td class="left"><c:out value="${revisit.sportTime}" />分钟</td>
		</tr>
		<tr>
			<td class="right">疗效判定：</td>
			<td class="left"><span id="treatEffect"></span></td>
		</tr>
		<tr>
			<td class="right">血糖变化原因：</td>
			<td class="left"><c:out value="${revisit.changeReason}" /></td>
		</tr>
		<tr>
			<td class="right">是否需要医生回访</td>
			<td class="left">&nbsp;&nbsp;<input name="isNeedDoctor"
				type="checkbox" class="checkbox" disabled="disabled" /></td>
		</tr>
	</tbody>
</table>
</fieldset>
<div style="text-align: center; height: 25px;"><a class="submit"
	href="${ctx}/revisit/edit.do?revisitId=${revisit.revisitId}">修&nbsp;&nbsp;&nbsp;改</a>
</div>
<script type="text/javascript">
	//condition
	$(document).ready(function() {
		$('#treatEffect').text(treatEffect['${revisit.treatEffect}']);
		$("input[name='isNeedDoctor']").attr("checked", '${revisit.isNeedDoctor}');
	});
	
</script>